package cn.jetpiece.cloud.joss.app.modular.object.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 服务提供商
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
@TableName("oss_provider")
public class Provider implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * UUID
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 服务商名称
     */
    @TableField("provider_name")
    private String providerName;

    /**
     * 服务商类型,1:OSS,2:OBS,3:COS,4:MINIO
     */
    @TableField("provider_type")
    private Integer providerType;

    /**
     * 公钥
     */
    @TableField("access_key")
    private String accessKey;

    /**
     * 密钥
     */
    @TableField("secret_key")
    private String secretKey;

    /**
     * 启用(1:是,0:否)
     */
    @TableField(value = "is_enable", fill = FieldFill.INSERT)
    private Integer isEnable;

    /**
     * 删除(1:是,0:否)
     */
    @TableField(value = "is_del", fill = FieldFill.INSERT)
    private Integer isDel;

    /**
     * 新增时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 新增人
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProviderName() {
        return providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public Integer getProviderType() {
        return providerType;
    }

    public void setProviderType(Integer providerType) {
        this.providerType = providerType;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public Integer getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "Provider{" +
                "id=" + id +
                ", providerName=" + providerName +
                ", providerType=" + providerType +
                ", accessKey=" + accessKey +
                ", secretKey=" + secretKey +
                ", isEnable=" + isEnable +
                ", isDel=" + isDel +
                ", createTime=" + createTime +
                ", createUser=" + createUser +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                "}";
    }
}
